package com.xingyun.kingdee.erp.tools.param.model;

/**
 * @author lingo
 * @version v1.0
 * @date 2020/4/29 17:41
 * @Company www.xyb2b.com
 */

public enum FilterType {

    EQUAL("%s = %s"),
    NOT_EQUAL("%s != %s"),
    IS_NULL("%s is null"),
    IS_NOT_NULL("%s is not null"),
    LIKE("%s like %s"),
    NOT_LIKE("%s not like %s"),
    GREATER_THAN("%s > %s"),
    LESS_THAN("%s < %s"),
    GREATER_OR_EQUAL("%s >= %s"),
    LESS_OR_EQUAL("%s <= %s"),
    IN("%s in (%s)"),
    NOT_IN("%s not in (%s)"),
    ;

    /**
     * 组装方式，用 %s 作为占位符
     */
    private final String keyword;

    FilterType(String keyword) {
        this.keyword = keyword;
    }


    public String getKeyword() {
        return keyword;
    }
}
